package com.jadobo.xswing.util;

import java.util.Formatter;

public final class Str {
	
	public static String format(String string, Object ... arg) {
		Formatter FMT = new Formatter();
		String output = FMT.format(string, arg).toString();
		FMT.close();
		return output;
	}
	
	public static boolean isNullOrEmpty(String value) {
		return value == null || value.trim().length() == 0;
	}
}
